package com.gz.moreaseManager.modules.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 资讯信息
 * </p>
 *
 * @author wike
 * @since 2019-02-26
 */
@Data
@Accessors(chain = true)
public class Information extends Model<Information> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资讯类别:1：时尚,2:品牌
     */
    private Integer type;

    /**
     * 标题
     */
    private String title;

    /**
     * 简介
     */
    private String brief;

    /**
     * 封面图片
     */
    private String url;

    /**
     * 浮动广告路径
     */
    @TableField("advert_url")
    private String advertUrl;

    /**
     * 封面图片对应的base64码
     */
    @TableField(exist = false)
    private String uploadImg;

    /**
     * 状态:0:不显示,1,显示,2,置顶
     */
    private Integer status;

    /**
     * 发布时间
     */
    @TableField("release_time")
    private Date releaseTime;

    @TableField("create_time")
    private Date createTime;

    /**
     * 富文本内容
     */
    @TableField("infor_text")
    private String inforText;

    /**
     * 创建人
     */
    @TableField("create_person")
    private String createPerson;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
